using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace HomeCare.Web.Patient
{
    public partial class Show : System.Web.UI.Page
    {        
        		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					string id = Request.Params["id"];
					//ShowInfo(id);
				}
			}
		}
		
	private void ShowInfo(int id)
	{
		HomeCare.BLL.Patient bll=new HomeCare.BLL.Patient();
		HomeCare.Model.Patient model=bll.GetModel(id);
		this.lblEntryDate.Text=model.EntryDate.ToString();
		this.lblLastName.Text=model.LastName;
		this.lblFirstName.Text=model.FirstName;
		this.lblBirth.Text=model.Birth.ToString();
		this.lblCompanyID.Text=model.CompanyID.ToString();
		this.lblDiagnosis.Text=model.Diagnosis;
		this.lblIdentityNo.Text=model.IdentityNo;
		this.lblAddressLine1.Text=model.AddressLine1;
		this.lblAddressLine2.Text=model.AddressLine2;
		this.lblZipCode.Text=model.ZipCode;
		this.lblHomePhone.Text=model.HomePhone;
		this.lblCellPhone.Text=model.CellPhone;
		this.lblEmerContName.Text=model.EmerContName;
		this.lblEmerContRelation.Text=model.EmerContRelation;
		this.lblEmerContNumber.Text=model.EmerContNumber;
		this.lblCaseMgrName.Text=model.CaseMgrName;
		this.lblCaseMgrTel.Text=model.CaseMgrTel;
		this.lblReferer.Text=model.Referer;
		this.lblRefererPhone.Text=model.RefererPhone;
		this.lblRemark.Text=model.Remark;

	}


    }
}
